home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cgraphix
/
kdrawbor.c
< prev
next >
Wrap
Text File
|
1986-05-27
|
777b
|
31 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
void DrawBorder()
{
int ClipLoc, DirectModeLoc;
int xl1,xl2;
DirectModeLoc = DirectModeGlb;
DirectModeGlb = TRUE;
ClipLoc = ClippingGlb;
ClippingGlb = FALSE;
xl1 = X1RefGlb << 3;
xl2 = (X2RefGlb << 3) + 7;
if ((HeaderGlb) && (strlen(window[WindowNdxGlb].header) > 0) &&
(window[WindowNdxGlb].y2-window[WindowNdxGlb].y1 > HeaderSizeGlb) &&
(strlen(window[WindowNdxGlb].header) * 6 < iabs(xl2-xl1)-4)) {
DrawHeader(xl1, xl2);
}
else {
window[WindowNdxGlb].drawn = FALSE;
DrawSqr(xl1, Y1RefGlb, xl2, Y2RefGlb, FALSE);
}
DirectModeGlb = DirectModeLoc;
ClippingGlb = ClipLoc;
}